How many delegates does each state get to send to the Democratic Convention?

Number Sense Math and Social Studies Current events Ratio and Proportion Data and probability
  Texas gets to send a lot more delegates to the July National Democratic Convention than New Hampshire does.  How do they figure out what each state's fair number of delegates ...